JUDGE_RELEVANT_PROMPT = '''
You are an academic assistant tasked with evaluating the relevance of research papers to a specific survey topic. Your job is to determine how closely the provided paper title and excerpt align with the given survey topic. Based on your evaluation, you should assign a relevance score from 0 to 5, where 0 indicates no relevance, 5 indicates very high relevance, and the intermediate scores represent varying degrees of partial relevance.

**Instructions:**  

1. Read the survey topic carefully.  
2. Review the provided paper title and its excerpt.  
3. Assess the alignment between the content of the paper and the survey topic.  
4. Output a single relevance score:  
   - **0**: The paper is not relevant at all.  
   - **1**: The paper is minimally relevant.  
   - **2**: The paper has some relevance but is not directly aligned.  
   - **3**: The paper is moderately relevant.  
   - **4**: The paper is quite relevant but not completely aligned.  
   - **5**: The paper is highly relevant and strongly aligned with the survey topic.  

**Input Format:**  

- **Survey Topic:** [A brief description of the survey topic]  
- **Paper Title:** [The full title of the paper]  
- **Excerpt:** [A short segment from the paper that can provide insight into its content]  

**Output:**  

- A single integer: 0, 1, 2, 3, 4, or 5  

**Example 1 (Score: 0):**  

- **Survey Topic:** Advances in deep learning for natural language processing  
- **Paper Title:** "Quantum Computing: The Next Frontier in Cryptography"  
- **Excerpt:** "In this article, we delve into the emerging field of quantum computing and its potential to revolutionize cryptographic techniques. We discuss the principles of quantum mechanics and how they can be applied to create unbreakable encryption methods, offering a glimpse into the future of secure communications..."  

**Your response:**  

- 0  

**Example 2 (Score: 3):**  

- **Survey Topic:** Advances in deep learning for natural language processing  
- **Paper Title:** "Deep Reinforcement Learning for Cross-Domain Dialogue Systems"  
- **Excerpt:** "This study introduces a deep reinforcement learning approach to develop dialogue systems that adapt to multiple domains. Although the focus is not on language-specific features, the techniques leverage neural networks commonly used in NLP to optimize conversational strategies..."  

**Your response:**  

- 3  

**Example 3 (Score: 5):**  

- **Survey Topic:** Advances in deep learning for natural language processing  
- **Paper Title:** "Transformers for Enhanced Language Understanding in Machine Translation"  
- **Excerpt:** "This paper explores the application of transformer models in improving the accuracy and fluency of machine translation systems. We present a novel architecture that leverages self-attention mechanisms to better capture the context and meaning of sentences across different languages..."  

**Your response:**  

- 5  

Below is the INPUT:  
- **Survey Topic:** [TOPIC]  
- **Paper Title:** [TITLE]  
- **Excerpt:** [SEGMENT]  

Only reply with a single integer (0, 1, 2, 3, 4, or 5).  
'''

JUDGE_RELEVANT_YES_NO_PROMPT = '''
You are an academic assistant tasked with evaluating the relevance of research papers to a specific survey topic. Your job is to determine if the provided paper title and excerpt are pertinent to the given survey topic. After analyzing the information, you should output "yes" if the paper is relevant or "no" if it is not.

**Instructions:**

1. Read the survey topic carefully.
2. Review the provided paper title and its excerpt.
3. Assess the alignment between the content of the paper and the survey topic.
4. Output "yes" if the paper's focus matches or closely relates to the survey topic.
5. Output "no" if the paper's focus does not align with the survey topic.

**Input Format:**

- **Survey Topic:** [A brief description of the survey topic]
- **Paper Title:** [The full title of the paper]
- **Excerpt:** [A short segment from the paper that can provide insight into its content]

**Output:**

- A single word: "yes" or "no"

**Example 1 (Yes):**

- **Survey Topic:** Advances in deep learning for natural language processing
- **Paper Title:** "Transformers for Enhanced Language Understanding in Machine Translation"
- **Excerpt:** "This paper explores the application of transformer models in improving the accuracy and fluency of machine translation systems. We present a novel architecture that leverages self-attention mechanisms to better capture the context and meaning of sentences across different languages..."

**Your response:**

- yes

**Example 2 (No):**

- **Survey Topic:** Advances in deep learning for natural language processing
- **Paper Title:** "Quantum Computing: The Next Frontier in Cryptography"
- **Excerpt:** "In this article, we delve into the emerging field of quantum computing and its potential to revolutionize cryptographic techniques. We discuss the principles of quantum mechanics and how they can be applied to create unbreakable encryption methods, offering a glimpse into the future of secure communications..."

**Your response:**

- no


Below is the INPUT:
- **Survey Topic:** [TOPIC]
- **Paper Title:** [TITLE]
- **Excerpt:** [SEGMENT]

Only reply with 'yes' or 'no'.
'''

CRITERIA_BASED_JUDGING_PROMPT  = '''
Here is an academic survey about the topic "[TOPIC]":
---
[SURVEY]
---

<instruction>
Please evaluate this survey about the topic "[TOPIC]" based on the criterion above provided below, and give a score from 1 to 5 according to the score description:
---
Criterion Description: [Criterion Description]
---
Score 1 Description: [Score 1 Description]
Score 2 Description: [Score 2 Description]
Score 3 Description: [Score 3 Description]
Score 4 Description: [Score 4 Description]
Score 5 Description: [Score 5 Description]
---
Return the score without any other information:
'''

NLI_PROMPT = '''
---
Claim:
[CLAIM]
---
Source: 
[SOURCE]
---
Claim:
[CLAIM]
---
Is the Claim faithful to the Source? 
A Claim is faithful to the Source if the core part in the Claim can be supported by the Source.\n
Only reply with 'Yes' or 'No':
'''

ROUGH_STRUCTURE_PROMPT = '''
You are a renowned scholar and professor in the field of Artificial Intelligence.
You are tasked with generating a comprehensive outline for a survey paper about the topic "[TOPIC]". 
You are provided with the titles of several articles, which may vary in their relevance to the topic, along with parts of their content (abstracts, introductions, related works, etc.) below:\n
---
[PAPER LIST]
---  

Your job is to analyze this information, **filter out content that is not closely related to [TOPIC]**, and propose a well-structured outline for the survey. Follow these specific instructions:  

1. **Content Filtering and Relevance Analysis**:  
   - Carefully read the abstracts, introductions, and related works of the provided articles.  
   - Evaluate the relevance of each article to the topic "[TOPIC]".  
   - Focus only on the articles or sections that directly support or align with [TOPIC]. If an article contains partial information relevant to [TOPIC], extract only the relevant parts and disregard the rest.  
   - Discard articles or content that are unrelated to [TOPIC].  

2. **Domain Understanding**:  
   - Begin by identifying overarching trends or commonalities in the provided papers within the scope of [TOPIC]. 
   - Gradually build deeper insights into specific methodologies, challenges, and future directions within the scope of [TOPIC].

3. **Standard Survey Structure**:  
   - Ensure your proposed outline follows the structure of a high-quality survey paper. This includes:  
     - **Section 1: Introduction**: Summarize the importance of the topic, challenges, and motivation for the survey.  
     - **Section 2: Basic Notation and Related Definitions**: Provide necessary mathematical symbols, terminologies, and formal definitions that the audience must understand.  
     - **Section 3: Methods**: Describe major methods, approaches, or techniques in the field. This section should include details for each category or significant methodology.  
     - **Section 4: Topic-Specific Content**: Create a section specific to the theme of the survey (e.g., Applications, Benchmarks, Frameworks). Tailor it to the particular focus of the topic.  
     - **Section 5: Future Research Directions**: Discuss open problems, challenges, and potential opportunities for innovation in the field.   

4. **Clarity and Completeness**:  
   - Ensure each section has a clear purpose and logical flow.  
   - Section Description should have full logic and sufficient content while achieving brevity and completeness. 
   - The information in the Description should cover all the subsections in the current section and can inform the writing of the subsections.

5. **Output Format**:  
   Return the outline in the following format, please note that only the name of section 4 can be changed:  
   ```  
   <format>  
   Title: [TITLE OF THE SURVEY] about the "[TOPIC]" 
   Section 1: Introduction  
   Description 1: [DESCRIPTION OF SECTION 1]  
   
   Section 2: Basic Notation and Related Definitions  
   Description 2: [DESCRIPTION OF SECTION 2]  
   
   Section 3: Methods  
   Description 3: [DESCRIPTION OF SECTION 3]  

   Section 4: [NAME OF SECTION 4, You decide]  
   Description 4: [DESCRIPTION OF SECTION 4]  
   
   Section 5: Future Research Directions 
   Description 5: [DESCRIPTION OF SECTION 5]  
   </format>  
   ```  

Please output the outline:
'''




MERGING_OUTLINE_PROMPT = '''
You are an expert in artificial intelligence who wants to write a overall survey about [TOPIC].\n\
You are provided with a list of outlines as candidates below:\n\
---
[OUTLINE LIST]
---
Each outline contains a title and several sections.
Each section follows with a brief sentence to describe what to write in this section.
Follow these specific instructions:  
- You need to generate a final outline based on these provided outlines to make the final outline show comprehensive insights of the topic and more logical.
- Section Description should have full logic and sufficient content while achieving brevity and completeness. 
- The information in the Description should cover all the subsections in the current section and can inform the writing of the subsections.
Return the in the format, please note that only the name of section 4 can be changed:
<format>
Title: [TITLE OF THE SURVEY] about the "[TOPIC]" 
Section 1: Introduction  
Description 1: [DESCRIPTION OF SECTION 1]  

Section 2: Basic Notation and Related Definitions  
Description 2: [DESCRIPTION OF SECTION 2]  

Section 3: Methods  
Description 3: [DESCRIPTION OF SECTION 3]  

Section 4: [NAME OF SECTION 4, You decide]  
Description 4: [DESCRIPTION OF SECTION 4]  

Section 5: [Future Research Directions]  
Description 5: [DESCRIPTION OF SECTION 5]  
</format>
Only return the final outline without any other informations:
'''

SUBSECTION_OUTLINE_PROMPT_INTRO = '''
You are an expert in artificial intelligence who wants to write a overall survey about "[TOPIC]".\n\
You have created a overall outline below:\n\
---
[OVERALL OUTLINE]
---
The outline contains a title and several sections.\n\
Each section follows with a brief sentence to describe what to write in this section.\n\n\
<instruction>
- You need to enrich the section [SECTION NAME].
- The description of [SECTION NAME]: [SECTION DESCRIPTION]
- You need to generate the framwork containing several subsections based on the overall outlines.\n\
- These different subsections or logical blocks follow a progressive structure, which includes, but is not limited to, highlighting the significance of the field or issue, reviewing the existing research and challenges in the domain, defining the scope of topics covered, and emphasizing the unique perspective or contribution of the paper. Together, these elements are interlinked, working cohesively to serve the purpose of the review article.\n\
- Each subsection follows with a brief sentence to describe what to write in this subsection. Note that this description should not be a catch-all phrase, such as “This subsection highlights the importance of the field,” but rather a specific description based on the outline and always centered on the "[TOPIC]". \n\
- The description of subsection is very important, which involves subsequent online searching of the literature using the description as the input. So, broad descriptions, or descriptions that are not centered on the "[TOPIC]" will affect the search results.\n\
- Limit the number of subsections to no more than 4 to maintain focus and clarity.\n\n


Return the outline in the format:
<format>
Subsection 1: [NAME OF SUBSECTION 1]
Description 1: [DESCRIPTION OF SUBSENTCTION 1]

Subsection 2: [NAME OF SUBSECTION 2]
Description 2: [DESCRIPTION OF SUBSENTCTION 2]

...

Subsection K: [NAME OF SUBSECTION K]
Description K: [DESCRIPTION OF SUBSENTCTION K]
</format>
</instruction>
Only return the outline without any other informations:
'''

SUBSECTION_OUTLINE_PROMPT_NOTATION = '''
You are an expert in artificial intelligence who wants to write a overall survey about "[TOPIC]".\n\
You have created a overall outline below:\n\
---
[OVERALL OUTLINE]
---
The outline contains a title and several sections.\n\
Each section follows with a brief sentence to describe what to write in this section.\n\n\

- You need to enrich the section [SECTION NAME].
- The description of [SECTION NAME]: [SECTION DESCRIPTION]
- You need to generate the framwork containing several subsections based on the overall outlines.\n\
- These different subsections or logical blocks follow a parallel or progressive structure. Together, these elements are interlinked, working cohesively to serve the purpose of the review article and the current section.\n\
- Each subsection follows with a brief sentence to describe what to write in this subsection. Note that this description should not be a catch-all phrase, such as “This subsection describes the notation of the this task,” but rather a specific description about the content of the subsection and always centered on the "[TOPIC]". \n\
- The description of subsection is very important, which involves subsequent online searching of the literature using the description as the input. So, broad descriptions, or descriptions that are not centered on the "[TOPIC]" will affect the search results. Please ensure that the descriptions are precise. \n\
- Limit the number of subsections to no more than 4 to maintain focus and clarity.
\n\n

Return the outline in the format:
<format>
Subsection 1: [NAME OF SUBSECTION 1]
Description 1: [DESCRIPTION OF SUBSENTCTION 1]

Subsection 2: [NAME OF SUBSECTION 2]
Description 2: [DESCRIPTION OF SUBSENTCTION 2]

...

Subsection K: [NAME OF SUBSECTION K]
Description K: [DESCRIPTION OF SUBSENTCTION K]
</format>

Only return the outline without any other informations:
'''

SUBSECTION_OUTLINE_PROMPT_OTHERS = '''
You are an expert in artificial intelligence who wants to write a overall survey about "[TOPIC]".\n\
You have created a overall outline below:\n\
---
[OVERALL OUTLINE]
---
The outline contains a title and several sections.\n\
Each section follows with a brief sentence to describe what to write in this section.\n\n\
<instruction>
- You need to enrich the section [SECTION NAME].
- The description of [SECTION NAME]: [SECTION DESCRIPTION]
- You need to generate the framwork containing several subsections based on the overall outlines.\n\
- These different subsections or logical blocks follow a parallel or progressive structure. Together, these elements are interlinked, working cohesively to serve the purpose of the review article and the current section.\n\
- Each subsection follows with a brief sentence to describe what to write in this subsection. Note that this description should not be a catch-all phrase, such as “This subsection describes the notation of the this task,” but rather a specific description about the content of the subsection and always centered on the "[TOPIC]". \n\
- The description of subsection is very important, which involves subsequent online searching of the literature using the description as the input. So, broad descriptions, or descriptions that are not centered on the "[TOPIC]" will affect the search results.\n\n

Return the outline in the format:
<format>
Subsection 1: [NAME OF SUBSECTION 1]
Description 1: [DESCRIPTION OF SUBSENTCTION 1]

Subsection 2: [NAME OF SUBSECTION 2]
Description 2: [DESCRIPTION OF SUBSENTCTION 2]

...

Subsection K: [NAME OF SUBSECTION K]
Description K: [DESCRIPTION OF SUBSENTCTION K]
</format>
</instruction>
Only return the outline without any other informations:
'''


SUBSECTION_OUTLINE_PROMPT = '''
You are an expert in artificial intelligence who wants to write a overall survey about [TOPIC].\n\
You have created a overall outline below:\n\
---
[OVERALL OUTLINE]
---
The outline contains a title and several sections.\n\
Each section follows with a brief sentence to describe what to write in this section.\n\n\
<instruction>
You need to enrich the section [SECTION NAME].
The description of [SECTION NAME]: [SECTION DESCRIPTION]
You need to generate the framwork containing several subsections based on the overall outlines.\n\
Each subsection follows with a brief sentence to describe what to write in this subsection.
These papers provided for references:
---
[PAPER LIST]
---
Return the outline in the format:
<format>
Subsection 1: [NAME OF SUBSECTION 1]
Description 1: [DESCRIPTION OF SUBSENTCTION 1]

Subsection 2: [NAME OF SUBSECTION 2]
Description 2: [DESCRIPTION OF SUBSENTCTION 2]

...

Subsection K: [NAME OF SUBSECTION K]
Description K: [DESCRIPTION OF SUBSENTCTION K]
</format>
</instruction>
Only return the outline without any other informations:
'''

EDIT_FINAL_OUTLINE_PROMPT = '''
You are an expert in artificial intelligence who wants to write a overall survey about [TOPIC].\n\
You have created a draft outline below:\n\
---
[OVERALL OUTLINE]
---
The outline contains a title and several sections.\n\
Each section follows with a brief sentence to describe what to write in this section.\n\n\
Under each section, there are several subsections.
Each subsection also follows with a brief sentence of descripition.
Some of the subsections may be repeated or overlaped.
You need to modify the outline to make it both comprehensive and logically coherent with no repeated subsections.
Repeated subsections among sections are not allowed!
Return the final outline in the format:
<format>
# [TITLE OF SURVEY]

## [NAME OF SECTION 1]
Description: [DESCRIPTION OF SECTION 1]
### [NAME OF SUBSECTION 1]
Description: [DESCRIPTION OF SUBSECTION 1]
### [NAME OF SUBSECTION 2]
Description: [DESCRIPTION OF SUBSECTION 2]
...

### [NAME OF SUBSECTION L]
Description: [DESCRIPTION OF SUBSECTION L]
## [NAME OF SECTION 2]

...

## [NAME OF SECTION K]
...

</format>
Only return the final outline without any other informations:
'''

SECTION_3_SUMMARY_PROMPT='''
You are an expert in artificial intelligence tasked with writing a comprehensive and detailed survey on [TOPIC].

For Section 3, the subchapters are organized as follows:
[SUB_TITLE]
Each subchapter is described as:
[SUB_DES]

Please write a brief introductory paragraph (around 100 words) for Chapter 3. This introduction should outline the logical flow of the chapter and provide a concise overview of the specific content covered in each subchapter.
'''

SECTION_3_PROMPT='''
I will provide you with one or more paragraphs. Your task is to extract the **names of methods** that include citations in the format `<sup>xx</sup>`. These citations typically refer to specific methods mentioned in the text. Once extracted, list them **including the `<sup>xx</sup>` tags**, separated by commas. Do not include any additional explanations or text in your response. If no such method names with citations are found, return "None".

**Important Note:** Focus only on extracting **method names** that are associated with citations (e.g., `<sup>xx</sup>`). Do not extract paper titles or other unrelated text. **Make sure to retain the `<sup>xx</sup>` tags in the output.**

**Example:**

**Input:**  
This approach leverages the ability of LLMs to process large-scale, unstructured data and generate meaningful patterns, which can be used to improve the performance of ARIMA models.\n\nAnother approach to integrating traditional time series models within LLMs is through the use of seasonal decomposition. Seasonal decomposition is a technique used to identify and remove the seasonal component from a time series. \n\nThe paper 'Position: What Can Large Language Models Tell Us about Time Series Analysis' <sup>17</sup> discusses the use of seasonal decomposition within the framework of LLMs. The authors propose a method to integrate seasonal decomposition with LLMs by using the LLM to generate the seasonal components of the time series. This approach leverages the ability of LLMs to process and generate sequences of data, which can be used to improve the accuracy of seasonal decomposition.

**Output:**  
SDSS <sup>16</sup>, Position <sup>17</sup>

---

**Your Task:**  
Now, extract the **method names** with citations (i.e., `<sup>14</sup>`) from the following text:  
[SUBSECTION_CONTENT]

**Output should be:**  
[Your extracted results here, including the `<sup>xx</sup>` tags, or "None" if no matches are found.]
'''


SECTION_3_TABLE_PROMPT = '''
You are an artificial intelligence expert assigned to create a comprehensive and detailed survey on [TOPIC].

You have now completed writing the content for the subsection [SUB_NAME], which reads as follows:
[SUB_CONTENT]

Your task is to transform this content into a well-structured markdown table with four columns:
1. Method 
2. Category
3. Advantages
4. Limitations

Key instructions:
- Focus on extracting and organizing the methods discussed in the subsection
- Use the actual method names in the first column, not paper titles
- Preserve right citation references (in the format `<sup>number</sup>`, e.g. <sup>12</sup>) that accompany the methods
- Ensure each method's category, advantages, and limitations are clearly presented
- Maintain consistency in formatting and presentation
- The table should be comprehensive, covering all methods mentioned in the subsection
- Use proper markdown syntax for table creation

The output should be a clean, readable table that effectively summarizes the key information about each method discussed in the subsection.
'''



CHECK_INCOMPLETE_PROMPT = '''
You are an expert in artificial intelligence tasked with writing a comprehensive and detailed survey on **[TOPIC]**.

You have drafted a subsection below:  
---  
[SUBSECTION]  
---  

**Instructions:**  
1. Occasionally, the final part of a subsection may be incomplete. If this is the case, remove the incomplete sentence at the end.  
   - Do not attempt to complete or rewrite the sentence.  
   - Do not delete any preceding content related to the incomplete sentence.  
2. If the subsection does not contain an incomplete sentence at the end, return the original subsection without any modifications.
3. Note: Sentences referencing specific papers are followed by citations in the format `[paper_id, chunk_id]`.  
   - Example: *"the emergence of large language models (LLMs) [454895324178681746, chunk 2], [454845697059477710, chunk 6]."*  
   - **Do not modify or alter these citations.**  

**Return only the corrected subsection (or the original subsection if no changes are needed) without any additional explanations or commentary::**  
'''

CHECK_CITATION_PROMPT = '''
You are an expert in artificial intelligence who wants to write a overall and comprehensive survey about [TOPIC].\n\
Below are a list of papers for references:
---
[PAPER LIST]
---
You have written a subsection below:\n\
---
[SUBSECTION]
---
<instruction>
The sentences that are based on specific papers above are followed with the citation of "paper_id" and "chunk_id" in "[]".
For example 'the emergence of large language models (LLMs) [454895324178681746, chunk 2],[454845697059477710, chunk 6]'

Here's a concise guideline for when to cite papers in a survey:
---
1. Summarizing Research: Cite sources when summarizing the existing literature.
2. Using Specific Concepts or Data: Provide citations when discussing specific theories, models, or data.
3. Comparing Findings: Cite relevant studies when comparing or contrasting different findings.
4. Highlighting Research Gaps: Cite previous research when pointing out gaps your survey addresses.
5. Using Established Methods: Cite the creators of methodologies you employ in your survey.
6. Supporting Arguments: Cite sources that back up your conclusions and arguments.
7. Suggesting Future Research: Reference studies related to proposed future research directions.
---

Now you need to check whether the citations of "paper_id" and "chunk_id" in this subsection is correct.
A correct citation means that, the content of corresponding paper can support the sentences you write.
Once the citation can not support the sentence you write, correct the "paper_id" and "chunk_id" in '[]' or just remove it.

Remember that you can only cite the "paper_id" and "chunk_id" provided above!!!
Any other informations like authors are not allowed cited!!!
Do not change any other things except the citations!!!
</instruction>
Only return the subsection with correct citations:
'''

SUBSECTION_WRITING_PROMPT = '''
You are an expert in artificial intelligence who wants to write a overall and comprehensive survey about "[TOPIC]".\n\
You have created a overall outline below:\n\
---
[OVERALL OUTLINE]
---
Below are a list of papers for references:
---
[PAPER LIST]
---

<instruction>
Now you need to write the content for the subsection:
"[SUBSECTION NAME]" under the section: "[SECTION NAME]"
The details of what to write in this subsection called "[SUBSECTION NAME]" is in this descripition:
---
[DESCRIPTION]
---

Here is the requirement you must follow:
1. The content you write must be more than [WORD NUM] words.
2. When writing sentences that are based on specific papers above, you cite both the "paper_id" and "chunk_id" in a '[]' format to support your content. Don't put the "paper_id" and "chunk_id" of different papers in a single “[]”, put them each in a “[]” and separate them with “,”. An example of citation: 'the emergence of large language models (LLMs) [454895324178681746, chunk 2],[454845697059477710, chunk 6]'
Note that the "paper_id & chunk_id" is not allowed to appear without a '[]' format. Once you mention the "paper_id & chunk_id", it must be included in '[]'. Papers not existing above are not allowed to cite!!!
Remember that you can only cite the paper provided above and only cite the "paper_id & chunk_id"!!!
3. Only when the main part of the paper support your claims, you cite it.
4. Remove any citation numbers originally present in the provided text chunks!!!

Here's a concise guideline for when to cite papers in a survey:
---
1. Summarizing Research: Cite sources when summarizing the existing literature.
2. Using Specific Concepts or Data: Provide citations when discussing specific theories, models, or data.
3. Comparing Findings: Cite relevant studies when comparing or contrasting different findings.
4. Highlighting Research Gaps: Cite previous research when pointing out gaps your survey addresses.
5. Using Established Methods: Cite the creators of methodologies you employ in your survey.
6. Supporting Arguments: Cite sources that back up your conclusions and arguments.
7. Suggesting Future Research: Reference studies related to proposed future research directions.
---

</instruction>
Return the content of subsection "[SUBSECTION NAME]" in the format:

<format>
[CONTENT OF SUBSECTION]
</format>

Generate content for the subsection '[SUBSECTION NAME]' strictly adhering to these rules:  
1. Output **only** the body text (no subsection title or markdown).  
2. Ensure the text exceeds **[WORD NUM]** words in length.  
3. Include **at least [CITATION NUM]** citations within the body. 
4. Exclude **all** explanations about structure, instructions, or generation methodology.
'''


LCE_PROMPT = '''
You are an expert in artificial intelligence who wants to write a overall and comprehensive survey about [TOPIC].

Now you need to help to refine one of the subsection to improve th ecoherence of your survey.

You are provied with the content of the subsection along with the previous subsections and following subsections.

Previous Subsection:
--- 
[PREVIOUS]
---

Following Subsection:
---
[FOLLOWING]
---

Subsection to Refine: 
---
[SUBSECTION]
---


If the content of Previous Subsection is empty, it means that the subsection to refine is the first subsection.
If the content of Following Subsection is empty, it means that the subsection to refine is the last subsection.

Now refine the subsection to enhance coherence, and ensure that the content of the subsection flow more smoothly with the previous and following subsections. 

Remember that keep all the essence and core information of the subsection intact. Do not modify any citations in [] following the sentences.

Only return the whole refined content of the subsection without any other informations (like "Here is the refined subsection:")!

The subsection content:
'''

CONCLUSION_PROMPT = '''  
As an expert in artificial intelligence, you are writing a comprehensive survey on "[TOPIC]".  

Below is the overall outline of your survey:  
---  
[OVERALL OUTLINE]  
---  

You have completed all sections except for "Section 6: Conclusion." The current content of the survey is provided below:  
---  
[SURVEY]  
---  

Now, please write a compelling and insightful conclusion (Section 6) that not only summarizes the key insights of the survey but also highlights its broader implications, challenges, and future directions. The conclusion should leave a lasting impression on the reader, emphasizing why this topic matters and how it may evolve.  

Keep it under 300 words. Only return the conclusion content without the title or any other information.  
'''  

